package com.fz.mapper;

import com.fz.entity.Member;
import com.fz.entity.Student;
import org.apache.ibatis.annotations.Delete;

import java.util.List;
import java.util.Map;

/**
 * Created by webrx on 2017-08-28.
 */
public interface StudentMapper {
    public List<Student> search(Map<String,Object> map);
    public List<Student> search();
    public int update(Map<String,Object> map);
    public int updateScore(Map<String,Object> map);

    public int updateInc(int score);

    public int delete(Map<String,Object> map);
    public int delete();
    @Delete("delete from db_student where id=#{id}")
    public int deleteById(int id);
    @Delete("delete from db_student where name like #{name}")
    public int deleteByName(String n);
}
